package com.qq.employee.service;

import com.qq.employee.dao.AttendanceMapper;
import com.qq.employee.utity.Attendance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceService {
    @Autowired
    public AttendanceMapper attendanceMapper;

    public List<Attendance> listAttendance() {
        return attendanceMapper.listAttendance();
    }

    public int insertAttendance(Attendance attendance) {
        return attendanceMapper.insertAttendance(attendance);
    }

    public int deleteAttendance(int id) {
        return attendanceMapper.deleteAttendance(id);
    }

   public int updateAttendance(Attendance attendance){
        return attendanceMapper.updateAttendance(attendance);
   }
   
   public Attendance get(int  id){
        return attendanceMapper.get(id);
   }
}
